<%@ Page Language="C#" MasterPageFile="~/Board.Master" AutoEventWireup="true" CodeBehind="MoveTopic.aspx.cs" Inherits="UserInterface.MoveTopic" %>
<asp:Content ID="Content1" ContentPlaceHolderID="ContentPlaceHolder" runat="server">
    <asp:Repeater ID="CategoryRepeater" runat="server">
        <HeaderTemplate>
            <table class="list-table">
        </HeaderTemplate>
        <ItemTemplate>
                <tr>
                    <td class="category-header" colspan="2"><%# Eval("Name") %></th>
                </tr>
                <asp:Repeater ID="ForumRepeater" OnItemDataBound="ForumRepeater_ItemDataBound" OnItemCommand="ForumRepeater_ItemCommand" DataSource='<%# Eval("Forums") %>' runat="server">
                    <ItemTemplate>
                            <tr>
                                <td class="default-column forum-title-width"><%# Eval("Name") %></td>
                                <td class="default-column">
                                    <asp:Button ID="MoveButton" Text="<%$ Resources: Move %>" CommandName="Move" CommandArgument='<%# Eval("Id") %>' runat="server" />
                                </td>
                            </tr>
                    </ItemTemplate>
                </asp:Repeater>
        </ItemTemplate>
        <FooterTemplate>
            </table>
            <br>
        </FooterTemplate>
    </asp:Repeater>
    
    <input type="button" onclick="location='ViewTopic.aspx?topicId=<%= TopicId %>'" value="<%= GetLocalResourceObject("Cancel")%>">
</asp:Content>